import {  lazy } from "react";
import { RoutherHome, RouterList } from "./ulits";
export const HomeRouters: RoutherHome[] = [
  {
    id: 8,
    title: "为你推荐",
    path: "home1/Recommend",
    element: lazy(() => import("../home1/Tab/Recommend/Recommend")),
  },
  {
    id: 11,
    title: "模版中心",
    path: "/home1/Template",
    element: lazy(() => import("../home1/Tab/Template/Template")),
  },
  {
    id: 1,
    title: "图片编辑",
    path: "/home1/Edit",
    element: lazy(() => import("../home1/Tab/Edit/Edit")),
  },
  
  
  {
    id: 4,
    title: "设计中心",
    path: "/home1/Design",
    element: lazy(() => import("../home1/Tab/Design/Design")),
  },
  {
    id: 5,
    title: "创建中心",
    path: "/home1/Establish",
    element: lazy(() => import("../home1/Tab/Establish/Establish")),
  },
  
  {
    id: 10,
    title: "创建团队",
    path: "/home1/Team",
    element: lazy(() => import("../home1/Tab/Team/Team")),
  },
  {
    id: 7,
    title: "创客贴Ai",
    path: "/home1/Maker",
    element: lazy(() => import("../home1/Tab/Maker/Maker")),
  },
  {
    id: 6,
    title: "智能设计",
    path: "/home1/Intelligence",
    element: lazy(() => import("../home1/Tab/Intelligence/Intelligence")),
  },
  {
    id: 3,
    title: "智能抠图",
    path: "/home1/Cutoutimage",
    element: lazy(() => import("../home1/Tab/Cutoutimage/Cutoutimage")),
  },
  {
    id: 9,
    title: "图片编辑",
    path: "/home1/Source",
    element: lazy(() => import("../home1/Tab/Maker/Maker")),
  },
  {
    id: 2,
    title: "批量设计",
    path: "/home1/batch",
    element: lazy(() => import("../home1/Tab/Batch/Batch")),
  }
];
const Routers: RouterList = {
  mode: "history",
  routes: [
    {
      path: "/",
      to: "/home",
    },
    {
      path: "/home",
      element: lazy(() => import("../home/index")),
    },
    {
      path: "/home1",
      element: lazy(() => import("../home1/home1")),
      children: HomeRouters,
    },
    {
      path: "/sheji",
      element: lazy(() => import("../home1/Tab/sheji/sheji")),
    },
  ],
};

export default Routers;
